package com.umfb.edu.mapper;

import com.umfb.demo.entity.edu.Photo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PhotoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Photo record);

    int insertSelective(Photo record);

    Photo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Photo record);

    int updateByPrimaryKey(Photo record);

    /**
     * @param albumId
     * @param size
     * @return
     */
    List<Photo> findPhotoByAlbumId(@Param("albumId")String albumId, @Param("size")Integer size);

    List<Photo> randomHanYuBiHua(@Param("albumId")String albumId);
}